package com.workmanager.service;

import com.workmanager.bean.JobTaskBean;
import com.workmanager.bean.WorkBean;
import com.workmanager.mapper.LookUpGoodJobMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by haocongshun on 2016/9/8.
 */
@Service("lookUpGoodJobService")
public class LookUpGoodJobService {
    @Resource(name="lookUpGoodJobMapper")
    private LookUpGoodJobMapper lookUpGoodJobMapper;

    public LookUpGoodJobMapper getLookUpGoodJobMapper() {
        return lookUpGoodJobMapper;
    }

    public void setLookUpGoodJobMapper(LookUpGoodJobMapper lookUpGoodJobMapper) {
        this.lookUpGoodJobMapper = lookUpGoodJobMapper;
    }

    public List<WorkBean> getGoodJob(String jobTask_id){
        return lookUpGoodJobMapper.getGoodJob(jobTask_id);
    }
    public List<JobTaskBean> getJobTask(String student_id){
        return lookUpGoodJobMapper.getJobTask(student_id);
    }
    public WorkBean getWorkById(String work_id){
        return lookUpGoodJobMapper.getWorkById(work_id);
    }
}
